Package-level declarations

Types

Link copied to clipboard
class AgenticResultAssistantMessage(val agentProcessExecution: AgentProcessExecution, val content: String, val name: String? = null) : AssistantMessage

Assistant message resulting from an agentic execution

Link copied to clipboard
open class AssistantMessage constructor(val content: String, val name: String? = null, val timestamp: Instant = Instant.now()) : Message

Message sent by the assistant.

Link copied to clipboard
interface ChatSession

Simplest possible conversation session implementation

Link copied to clipboard
interface Conversation

Conversation shim for agent system

Link copied to clipboard
fun interface ConversationFormatter

Format a conversation into a String for inclusion in a prompt. Note that we often prefer to use messages.

Link copied to clipboard
data class InMemoryConversation constructor(val messages: List<Message> = emptyList(), val id: String = MobyNameGenerator.generateName(), persistent: Boolean = false) : Conversation
Link copied to clipboard
sealed class Message : HasContent

Message class for agent system

Link copied to clipboard
fun interface MessageFormatter
Link copied to clipboard
fun interface MessageListener

Listener for messages in a chat session. Will be called for every message sent in the session, whether a user message or an assistant message from the system.

Link copied to clipboard
class MessageSavingMessageListener(messageList: MutableList<Message> = mutableListOf()) : MessageListener
Link copied to clipboard
enum Role : Enum<Role>

Role of the message sender. For visible messages, not user messages.

Link copied to clipboard
class SystemMessage constructor(val content: String, val timestamp: Instant = Instant.now()) : Message
Link copied to clipboard
class UserMessage constructor(val content: String, val name: String? = null, val timestamp: Instant = Instant.now()) : Message

Message sent by the user.

Link copied to clipboard
class WindowingConversationFormatter constructor(messageFormatter: MessageFormatter = SimpleMessageFormatter, windowSize: Int = 100) : ConversationFormatter

Conversation formatter that shows the last windowSize messages